﻿@using Atomic.Mvc;

@model Atomic.Collections.IPageOfItems<Atomic.Plugins.Users.Models.ViewUser>

@{
    ViewBag.Title = "用户管理";
}

<link href="/@Html.GetCorePluginPath("Atomic.Users")/Themes/Default/Content/Css/admin.css" rel="stylesheet" />
<table id="users">
    <thead>
        <tr>
            <td id="user-id">编号</td>
            <td id="user-accountNumber">账号</td>
            <td id="user-name">名称</td>
            <td id="user-email">邮箱</td>
            <td id="user-menu">操作</td>
        </tr>
    </thead>
    <tbody>
        @if (Model != null && Model.Count() > 0)
        {
            foreach (var user in Model)
            {
                <tr>
                    <td class="user-id-content">@user.Id</td>
                    <td class="user-accountNumber-content">@user.AccountNumber</td>
                    <td class="user-name-content">@user.Name</td>
                    <td class="user-email-content">@user.Email</td>
                    <td class="user-menu-content"><a href="#">查看</a></td>
                </tr>
            }
        }
    </tbody>
    <tfoot>
        <tr>
            <td id="users-footer" colspan="5">共 @Model.TotalPageCount 页 @Model.TotalItemCount 条记录，当前第 @Model.PageIndex 页，每页 @Model.PageSize 条记录</td>
        </tr>
    </tfoot>
</table>